:root {
  -my-height-: 400px;
}

.container {
  width: 600px;
  height: 600px;
  border: 1px solid red;
  position: relative;
  border-radius: 50%;
  margin: 100px auto;
  display: flex;
  justify-content: center;
  align-items: start;
  animation: rotation linear infinite 20s;
}

.item > img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.item {
  width: 200px;
  height: 200px;
  position: absolute;
  border-radius: 50%;
  margin-top: -100px;
  transform-origin: center 400px;
}

.item:nth-child(1) {
  transform: rotate(0deg);
}

.item:nth-child(1) img {
  --initDeg: 0deg;
  transform: rotate(0deg);
  animation: rotation linear infinite 20s reverse;
}

.item:nth-child(2) {
  transform: rotate(72deg);
}

.item:nth-child(2) img {
  --initDeg: -72deg;
  transform: rotate(-72deg);
  animation: rotation linear infinite 20s reverse;
}

.item:nth-child(3) {
  transform: rotate(144deg);
}

.item:nth-child(3) img {
  --initDeg: -144deg;
  transform: rotate(-144deg);
  animation: rotation linear infinite 20s reverse;
}

.item:nth-child(4) {
  transform: rotate(216deg);
}

.item:nth-child(4) img {
  --initDeg: -216deg;
  transform: rotate(-216deg);
  animation: rotation linear infinite 20s reverse;
}

.item:nth-child(5) {
  transform: rotate(288deg);
}

.item:nth-child(5) img {
  --initDeg: -288deg;
  transform: rotate(-288deg);
  animation: rotation linear infinite 20s reverse;
}

@keyframes rotation {
  to {
    transform: rotate(calc(360deg + var(--initDeg,0deg)));
  }
}
